using System;
using System.Text;

namespace BTEditor
{
    public abstract class Task : EditorNode
    {
        public override EditorNodeEnum NodeEnum
        {
            get { return EditorNodeEnum.Task; }
        }
        
        public override int CanAddNodeCount
        {
            get { return EditorNodeConst.Normal_Task_CanAddNode; }
        }

        public override string ToChild()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append($" new {BTUtils.GetTypeName(GetNodeType())}");
            sb.Append($"(");
            DealField(sb);
            sb.Append($")");
            return sb.ToString();
        }
    }
}